/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package JungSocialNetPackage;

import java.awt.Color;
import java.util.Random;
import java.util.Vector;

/**
 *
 * @author Heather
 */
public class SocialNetVertex {
  private static Random randGen = new Random();
  public String name = "DEFAULT_NAME";
  public Vector<int[]> representedGroups;
  public int number = 0;
  public int population = 0;
  // default color is white
  public Color color = new Color(255, 255, 255);

  public SocialNetVertex()
  {
    representedGroups = new Vector<int[]>();
  }

  public void setRandomColor()
  {
    int red = randGen.nextInt(200);
    int blue = randGen.nextInt(200);
    int green = randGen.nextInt(200);

    color = new Color(red, blue, green);
  }
}
